
noinst_PROGRAMS = DeadTouch

AM_CXXFLAGS = $(XML_CPPFLAGS) $(OTSERV_FLAGS) $(LUA_CFLAGS) $(DEBUG_FLAGS)\
	$(MYSQL_FLAGS) $(SQLITE_FLAGS) $(ODBC_FLAGS) $(PGSQL_FLAGS)\
	$(PROFILER_FLAGS) $(OPTIONAL_FLAGS) -D_THREAD_SAFE -D_REENTRANT\
	-D__PB_GMINVISIBLE__ -DDT_SMALLMODS -DDT_GM_UTILS -DDT_WORLDTYPE_CHANGE -DDT_PREMIUM_OUTFITS -DDT_PREMIUM_SYSTEM \
    -DDT_ATTACK_SPEED -DDT_DEATHLIST -DDT_GIVESKILL -DDT_ANIMATED_SPELLS -DDT_RULEVIOLATIONS -DDT_TELEPORTATION_MARKS \
	-DDT_REMOVE_THING -DDT_TALKACTIONS_ACCESS -DDT_AMULET_OF_LOSS -DDT_ON_LOOK -DDT_SPELL_EXHAUST -DDT_ON_ADVANCE \
	-DDT_LUAMODS -DDT_FROMID_TOID -DSVN -Wno-deprecated

DeadTouch_LDADD = $(LUA_LIBS)

if USE_MYSQL
MAYBE_MYSQL = databasemysql.cpp databasemysql.h
endif
if USE_SQLITE
MAYBE_SQLITE = databasesqlite.cpp databasesqlite.h
endif

DeadTouch_SOURCES = $(MAYBE_MYSQL) $(MAYBE_SQLITE) \
	account.cpp container.cpp creature.cpp game.cpp ioaccount.cpp \
	iomapxml.cpp ioplayer.cpp database.cpp database.h \
	item.cpp items.cpp luascript.cpp map.cpp monster.cpp networkmessage.cpp npc.cpp \
	otserv.cpp player.cpp position.cpp protocolgame.cpp spells.cpp \
	status.cpp thing.cpp tile.cpp tools.cpp account.h bootstrap.sh config.h const.h \
	container.h creature.h definitions.h game.h ioaccount.h \
	iomap.h iomapxml.h ioplayer.h item.h items.h \
	luascript.h map.h monster.h marks.h networkmessage.h npc.h otsystem.h player.h \
	position.h protocolgame.h scheduler.h spells.h stamp-h status.h \
	tasks.h templates.h texcept.h thing.h tile.h tools.h spawn.cpp spawn.h \
	actions.h actions.cpp commands.cpp commands.h depot.cpp depot.h \
	md5.cpp md5.h fileloader.cpp fileloader.h chat.cpp chat.h logger.cpp logger.h \
	iomapotbm.h iomapotbm.cpp monsters.h monsters.cpp teleport.cpp teleport.h \
	trashholder.cpp trashholder.h mailbox.cpp mailbox.h waitlist.cpp waitlist.h \
	house.cpp house.h housetile.cpp housetile.h iomapserialize.cpp iomapserialize.h \
	cylinder.cpp cylinder.h ban.cpp ban.h \
	rsa.cpp rsa.h configmanager.cpp configmanager.h outfit.cpp outfit.h otpch.h \
	admin.cpp admin.h baseevents.cpp baseevents.h \
	raids.cpp raids.h movement.cpp movement.h combat.cpp combat.h \
	condition.cpp condition.h weapons.cpp weapons.h talkaction.cpp talkaction.h \
	vocation.cpp vocation.h scriptmanager.cpp scriptmanager.h server.cpp connection.cpp \
	outputmessage.cpp tasks.cpp scheduler.cpp protocollogin.cpp protocol.cpp creatureevent.cpp \
	creatureevent.h sha1.cpp sha1.h beds.cpp beds.h party.cpp party.h quests.cpp quests.h marks.cpp \
	marks.h
